package com.archerdu.apply.model;
// default package
// Generated 2013-11-5 9:11:21 by Hibernate Tools 3.4.0.CR1

import java.util.Date;

import com.archerdu.base.dao.BaseEntity;

/**
 * Entity: 
 */
public class Company implements BaseEntity<Integer> {

    private static final long serialVersionUID = 1L;

    private Integer               id;

    private String            uniqueCode;

    /** 
     * 公司名称.
     */
    private String            name;

    /** 
     * 简称.
     */
    private String            shortname;

    /** 
     * 国家代码.
     */
    private String            areacode;

    /** 
     * 国家.
     */
    private String            country;

    /** 
     * 省份.
     */
    private String            province;

    /** 
     * 城市.
     */
    private String            city;

    /** 
     * 区县.
     */
    private String            county;

    /** 
     * 地址.
     */
    private String            address;

    /** 
     * 邮编.
     */
    private String            zipcode;

    /** 
     * 行业.
     */
    private String            industry;

    /** 
     * 经营范围.
     */
    private String            bussiness;

    /** 
     * 营业额.
     */
    private String            turnover;

    /** 
     * 所有权.
     */
    private String            ownership;

    /** 
     * 负责人.
     */
    private String            chairman;

    /** 
     * 联系人.
     */
    private String            linkman;

    /** 
     * 简介.
     */
    private String            brief;

    /** 
     * 电话.
     */
    private String            phone;

    /** 
     * 传真.
     */
    private String            fax;

    /** 
     * 网站.
     */
    private String            web;

    /** 
     * 邮箱.
     */
    private String            email;

    /** 
     * 公司等级，区分客户级别.
     */
    private Integer           rank;

    /** 
     * 使用标识.
     */
    private Integer           useFlag;

    /** 
     * 点击量.
     */
    private Integer           clickcount;

    /** 
     * 联系人职称.
     */
    private String            linkmanTitle;

    /** 
     * 负责人职称.
     */
    private String            chairmanTitle;

    /** 
     * LOGO.
     */
    private String            logo;

    /** 
     * 注册资本.
     */
    private String            registeredCapital;

    /** 
     * 审核时间.
     */
    private Date              auditTime;

    /** 
     * 审核状态.
     */
    private String            auditState;

    /** 
     * 审核人.
     */
    private Integer           auditUser;

    /** 
     * 关键词.
     */
    private String            keyword;

    /** 
     * 创建者.
     */
    private Integer           createUser;

    /** 
     * 创建时间.
     */
    private Date              createtime;

    /** 
     * 更新人.
     */
    private Integer           updateUser;

    /** 
     * 更新时间.
     */
    private Date              updatetime;

    public Company() {
    }

    public Company(int id, String uniqueCode) {
        this.id = id;
        this.uniqueCode = uniqueCode;
    }

    public Company(int id, String uniqueCode, String name, String shortname, String areacode, String country,
            String province, String city, String county, String address, String zipcode, String industry,
            String bussiness, String turnover, String ownership, String chairman, String linkman, String brief,
            String phone, String fax, String web, String email, Integer rank, Integer useFlag, Integer clickcount,
            String linkmanTitle, String chairmanTitle, String logo, String registeredCapital, Date auditTime,
            String auditState, Integer auditUser, String keyword, Integer createUser, Date createtime,
            Integer updateUser, Date updatetime) {
        this.id = id;
        this.uniqueCode = uniqueCode;
        this.name = name;
        this.shortname = shortname;
        this.areacode = areacode;
        this.country = country;
        this.province = province;
        this.city = city;
        this.county = county;
        this.address = address;
        this.zipcode = zipcode;
        this.industry = industry;
        this.bussiness = bussiness;
        this.turnover = turnover;
        this.ownership = ownership;
        this.chairman = chairman;
        this.linkman = linkman;
        this.brief = brief;
        this.phone = phone;
        this.fax = fax;
        this.web = web;
        this.email = email;
        this.rank = rank;
        this.useFlag = useFlag;
        this.clickcount = clickcount;
        this.linkmanTitle = linkmanTitle;
        this.chairmanTitle = chairmanTitle;
        this.logo = logo;
        this.registeredCapital = registeredCapital;
        this.auditTime = auditTime;
        this.auditState = auditState;
        this.auditUser = auditUser;
        this.keyword = keyword;
        this.createUser = createUser;
        this.createtime = createtime;
        this.updateUser = updateUser;
        this.updatetime = updatetime;
    }

    /**
     * toJson
     * 
     * @return String
     */
    public String toJson() {
        StringBuffer buffer = new StringBuffer();
        buffer.append("{");
        buffer.append("\"id\":\"" + id + "\",");
        buffer.append("\"uniqueCode\":\"" + uniqueCode + "\",");
        buffer.append("\"name\":\"" + name + "\",");
        buffer.append("\"shortname\":\"" + shortname + "\",");
        buffer.append("\"areacode\":\"" + areacode + "\",");
        buffer.append("\"country\":\"" + country + "\",");
        buffer.append("\"province\":\"" + province + "\",");
        buffer.append("\"city\":\"" + city + "\",");
        buffer.append("\"county\":\"" + county + "\",");
        buffer.append("\"address\":\"" + address + "\",");
        buffer.append("\"zipcode\":\"" + zipcode + "\",");
        buffer.append("\"industry\":\"" + industry + "\",");
        buffer.append("\"bussiness\":\"" + bussiness + "\",");
        buffer.append("\"turnover\":\"" + turnover + "\",");
        buffer.append("\"ownership\":\"" + ownership + "\",");
        buffer.append("\"chairman\":\"" + chairman + "\",");
        buffer.append("\"linkman\":\"" + linkman + "\",");
        buffer.append("\"brief\":\"" + brief + "\",");
        buffer.append("\"phone\":\"" + phone + "\",");
        buffer.append("\"fax\":\"" + fax + "\",");
        buffer.append("\"web\":\"" + web + "\",");
        buffer.append("\"email\":\"" + email + "\",");
        buffer.append("\"rank\":\"" + rank + "\",");
        buffer.append("\"useFlag\":\"" + useFlag + "\",");
        buffer.append("\"clickcount\":\"" + clickcount + "\",");
        buffer.append("\"linkmanTitle\":\"" + linkmanTitle + "\",");
        buffer.append("\"chairmanTitle\":\"" + chairmanTitle + "\",");
        buffer.append("\"logo\":\"" + logo + "\",");
        buffer.append("\"registeredCapital\":\"" + registeredCapital + "\",");
        buffer.append("\"auditTime\":\"" + auditTime + "\",");
        buffer.append("\"auditState\":\"" + auditState + "\",");
        buffer.append("\"auditUser\":\"" + auditUser + "\",");
        buffer.append("\"keyword\":\"" + keyword + "\",");
        buffer.append("\"createUser\":\"" + createUser + "\",");
        buffer.append("\"createtime\":\"" + createtime + "\",");
        buffer.append("\"updateUser\":\"" + updateUser + "\",");
        buffer.append("\"updatetime\":\"" + updatetime + "\",");
        buffer.deleteCharAt(buffer.length() - 1);
        buffer.append("}");
        return buffer.toString();
    }

    @Override
    public String toString() {

        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("\"公司名称\":\"" + name + "\",");

        buffer.append("\"简称\":\"" + shortname + "\",");

        buffer.append("\"国家代码\":\"" + areacode + "\",");

        buffer.append("\"国家\":\"" + country + "\",");

        buffer.append("\"省份\":\"" + province + "\",");

        buffer.append("\"城市\":\"" + city + "\",");

        buffer.append("\"区县\":\"" + county + "\",");

        buffer.append("\"地址\":\"" + address + "\",");

        buffer.append("\"邮编\":\"" + zipcode + "\",");

        buffer.append("\"行业\":\"" + industry + "\",");

        buffer.append("\"经营范围\":\"" + bussiness + "\",");

        buffer.append("\"营业额\":\"" + turnover + "\",");

        buffer.append("\"所有权\":\"" + ownership + "\",");

        buffer.append("\"负责人\":\"" + chairman + "\",");

        buffer.append("\"联系人\":\"" + linkman + "\",");

        buffer.append("\"简介\":\"" + brief + "\",");

        buffer.append("\"电话\":\"" + phone + "\",");

        buffer.append("\"传真\":\"" + fax + "\",");

        buffer.append("\"网站\":\"" + web + "\",");

        buffer.append("\"邮箱\":\"" + email + "\",");

        buffer.append("\"公司等级，区分客户级别\":\"" + rank + "\",");

        buffer.append("\"使用标识\":\"" + useFlag + "\",");

        buffer.append("\"点击量\":\"" + clickcount + "\",");

        buffer.append("\"联系人职称\":\"" + linkmanTitle + "\",");

        buffer.append("\"负责人职称\":\"" + chairmanTitle + "\",");

        buffer.append("\"LOGO\":\"" + logo + "\",");

        buffer.append("\"注册资本\":\"" + registeredCapital + "\",");

        buffer.append("\"审核时间\":\"" + auditTime + "\",");

        buffer.append("\"审核状态\":\"" + auditState + "\",");

        buffer.append("\"审核人\":\"" + auditUser + "\",");

        buffer.append("\"关键词\":\"" + keyword + "\",");

        buffer.append("\"创建者\":\"" + createUser + "\",");

        buffer.append("\"创建时间\":\"" + createtime + "\",");

        buffer.append("\"更新人\":\"" + updateUser + "\",");

        buffer.append("\"更新时间\":\"" + updatetime + "\",");

        buffer.deleteCharAt(buffer.length() - 1);
        buffer.append("]");
        return buffer.toString();
    }

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUniqueCode() {
        return this.uniqueCode;
    }

    public void setUniqueCode(String uniqueCode) {
        this.uniqueCode = uniqueCode;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShortname() {
        return this.shortname;
    }

    public void setShortname(String shortname) {
        this.shortname = shortname;
    }

    public String getAreacode() {
        return this.areacode;
    }

    public void setAreacode(String areacode) {
        this.areacode = areacode;
    }

    public String getCountry() {
        return this.country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return this.province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return this.city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return this.county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getZipcode() {
        return this.zipcode;
    }

    public void setZipcode(String zipcode) {
        this.zipcode = zipcode;
    }

    public String getIndustry() {
        return this.industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    public String getBussiness() {
        return this.bussiness;
    }

    public void setBussiness(String bussiness) {
        this.bussiness = bussiness;
    }

    public String getTurnover() {
        return this.turnover;
    }

    public void setTurnover(String turnover) {
        this.turnover = turnover;
    }

    public String getOwnership() {
        return this.ownership;
    }

    public void setOwnership(String ownership) {
        this.ownership = ownership;
    }

    public String getChairman() {
        return this.chairman;
    }

    public void setChairman(String chairman) {
        this.chairman = chairman;
    }

    public String getLinkman() {
        return this.linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getBrief() {
        return this.brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getFax() {
        return this.fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getWeb() {
        return this.web;
    }

    public void setWeb(String web) {
        this.web = web;
    }

    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getRank() {
        return this.rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public Integer getUseFlag() {
        return this.useFlag;
    }

    public void setUseFlag(Integer useFlag) {
        this.useFlag = useFlag;
    }

    public Integer getClickcount() {
        return this.clickcount;
    }

    public void setClickcount(Integer clickcount) {
        this.clickcount = clickcount;
    }

    public String getLinkmanTitle() {
        return this.linkmanTitle;
    }

    public void setLinkmanTitle(String linkmanTitle) {
        this.linkmanTitle = linkmanTitle;
    }

    public String getChairmanTitle() {
        return this.chairmanTitle;
    }

    public void setChairmanTitle(String chairmanTitle) {
        this.chairmanTitle = chairmanTitle;
    }

    public String getLogo() {
        return this.logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getRegisteredCapital() {
        return this.registeredCapital;
    }

    public void setRegisteredCapital(String registeredCapital) {
        this.registeredCapital = registeredCapital;
    }

    public Date getAuditTime() {
        return this.auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public String getAuditState() {
        return this.auditState;
    }

    public void setAuditState(String auditState) {
        this.auditState = auditState;
    }

    public Integer getAuditUser() {
        return this.auditUser;
    }

    public void setAuditUser(Integer auditUser) {
        this.auditUser = auditUser;
    }

    public String getKeyword() {
        return this.keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public Integer getCreateUser() {
        return this.createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    public Date getCreatetime() {
        return this.createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getUpdateUser() {
        return this.updateUser;
    }

    public void setUpdateUser(Integer updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdatetime() {
        return this.updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

}
